import { StyleSheet, Text, View, Button } from 'react-native'
import React, { useEffect } from 'react'

const Mine = ({ navigation }) => {
  useEffect(() => {
    // console.log(navigation)
  })
  const to = (name) => {
    console.log('+++++++++++++++++++++++++')
    console.log(name)
    navigation.navigate(name)
  }
  return (
    <View>
      <Text>Mine</Text>
      <Button title="登录" onPress={() => to('Login')}></Button>
      <Button title="设置" onPress={() => to('Settings')}></Button>
      <Button title="详情" onPress={() => to('Details')}></Button>
    </View>
  )
}

export default Mine

const styles = StyleSheet.create({})